package com.yidaozou.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yidaozou.dao.CmsFriendlinkTypeSqlSessionDao;
import com.yidaozou.model.CmsFriendlinkType;

@Service
public class CmsFriendlinkTypeSqlSessionDaoImpl implements CmsFriendlinkTypeSqlSessionDao{
	
	@Autowired
	private SqlSessionTemplate sqlSession;
	
	protected SqlSessionTemplate getSqlSession() {
		return sqlSession;
	}

	public CmsFriendlinkType insertCmsFriendlinkType(CmsFriendlinkType type) {
		this.getSqlSession().insert("clark.insertCmsFriendlinkType", type);
		return type;
	}

}
